package com.li.my_tiny_spring.beans.context;

import com.li.my_tiny_spring.beans.factory.AutowireCapableBeanFactory;

public abstract class AbstractApplicationContext implements ApplicationContext{

	protected AutowireCapableBeanFactory beanFactory;
	
	protected AbstractApplicationContext(AutowireCapableBeanFactory beanFactory) {
		this.beanFactory = beanFactory;
	}
	
	protected abstract void refresh();
	@Override
	public final Object getBean(String beanName) {
		return beanFactory.getBean(beanName);
	}
}
